package com.dji.sample.manage.service;

import com.dji.sample.common.model.PaginationData;
import com.dji.sample.manage.model.entity.DevicePlayLineEntity;
import com.dji.sample.wayline.model.entity.FlightPlanInfoEntity;
import com.dji.sample.wayline.model.param.WaylineQueryParam;

import java.util.List;

/**
 * @ClassName DevicePlayLineInfoService
 * @Description
 * @Author yangjitao
 * @Date 2022/9/9 14:19
 **/
public interface DevicePlayLineInfoService {

    void save(DevicePlayLineEntity devicePlayLineEntity);

    void save(String deviceSn);

    DevicePlayLineEntity findLastDeviceLineInfo(String deviceSn);

    void updatePosition(String deviceSn);

    void updateNullEndTime();

    String getLineOssUrl(Long id) throws Exception;

    DevicePlayLineEntity getById(Long id);

    PaginationData<DevicePlayLineEntity> findByDeviceSn(String deviceSn, Long page,Long pageSize);

    PaginationData<DevicePlayLineEntity> page(Integer page,Integer pageSize,String searchKey,String orgCode);

    void updatePlanId(Long id,String planId,String account);

    List<FlightPlanInfoEntity> getByLineId(Long id);


}
